package com.local.springcloud.service;

import com.local.springcloud.mapper.DeptMapper;
import com.local.springcloud.pojo.Dept;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author lou ke
 * @version 1.0
 * @since 2020/7/29 14:04
 */
@Service
public class DeptServiceImpl implements DeptService {

    @Autowired
    private DeptMapper deptMapper;

    public Boolean addDept(Dept dept) {
        return deptMapper.addDept(dept);
    }

    public Dept selectById(Long deptId) {
        return deptMapper.selectById(deptId);
    }

    public List<Dept> selectAll() {
        return deptMapper.selectAll();
    }
}
